﻿using System;
class NumberFormated
{
    static int InputNumber()
    {
        while (true)
        {
            try
            {
                int number = int.Parse(Console.ReadLine());
                return number;
            }
            catch (FormatException)
            {
                Console.Write("not in wanterd format. reenter: ");
            }
            catch (OverflowException)
            {
                Console.Write("number must be from {0} to {1}. reenter: ", int.MinValue, int.MaxValue);
            }
        }
    }
    static void Main()
    {
        int number = InputNumber();
        Console.WriteLine("{0,15}", number);
        Console.WriteLine("{0,15:X}", number);
        Console.WriteLine("{0,15:P}", number);
        Console.WriteLine("{0,15:E}", number);
        Console.ReadLine();
    }
}

